package com.atguigu.crowd.funding.service.api;

import com.atguigu.crowd.funding.entity.Admin;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author hftang
 * @date 2019-10-23 10:05
 * @desc
 */
public interface AdminService {

    //获取所有
    List<Admin> getAll();

    Admin doLogin(String loginAcct, String userPswd);

    PageInfo<Admin> queryForKeywordSearch(String keyword, Integer pageNum, Integer pageSize);

    void batchRemove(List<Integer> ids);

    void saveAdmin(Admin admin);

    Admin findAdminById(Integer adminId);

    void updateAdmin(Admin admin);
}
